package com.qf.Utils;

import com.alibaba.fastjson.JSON;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 你的名字
 * @Date: 2021/07/12/13:20
 * @Description:
 */
public class Json {
    public static String toJSON(Object targer) {
        return JSON.toJSONString(targer);
    }

    public static <T> T fromJson(String json, Class<T> cls) {
        return JSON.parseObject(json, cls);
    }
}
